package util;

public class Preconditions {
	public static void checkNotNull(Object object, String message) {
		if (object == null) {
			throw new IllegalArgumentException(message);
		}
	}
	
	public static void check(boolean value, String message) {
		if (!value) {
			throw new IllegalArgumentException(message);
		}
	}
}
